package com.test.school.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Title ConfigPojo.java
 * @description 读取配置文件的bean
 * @time 2019年12月25日 下午5:11:21
 * @author wuguodong
 **/
@Component
@ConfigurationProperties(prefix = "config")
public class Config {
    private String keepalive;// 保活时长（分钟）
    private String push_host;// 推送地址
    private String host_extra;// 额外地址
    private String push_port;// 推送端口
    private String main_code;// 主码流最大码率
    private String sub_code;// 主码流最大码率
    private String version;// 版本信息

    @Override
    public String toString() {
        return "Config{" +
                "keepalive='" + keepalive + '\'' +
                ", push_host='" + push_host + '\'' +
                ", host_extra='" + host_extra + '\'' +
                ", push_port='" + push_port + '\'' +
                ", main_code='" + main_code + '\'' +
                ", sub_code='" + sub_code + '\'' +
                ", version='" + version + '\'' +
                '}';
    }

    public String getKeepalive() {
        return keepalive;
    }

    public void setKeepalive(String keepalive) {
        this.keepalive = keepalive;
    }

    public String getPush_host() {
        return push_host;
    }

    public void setPush_host(String push_host) {
        this.push_host = push_host;
    }

    public String getHost_extra() {
        return host_extra;
    }

    public void setHost_extra(String host_extra) {
        this.host_extra = host_extra;
    }

    public String getPush_port() {
        return push_port;
    }

    public void setPush_port(String push_port) {
        this.push_port = push_port;
    }

    public String getMain_code() {
        return main_code;
    }

    public void setMain_code(String main_code) {
        this.main_code = main_code;
    }

    public String getSub_code() {
        return sub_code;
    }

    public void setSub_code(String sub_code) {
        this.sub_code = sub_code;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

}

